package com.mall.pay.domain.po;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@TableName("order")
@ApiModel(value = "订单信息")
public class Order {

    @TableId(value = "order_id", type = IdType.AUTO)
    @ApiModelProperty(value = "订单id")
    private Long orderId;

    @ApiModelProperty(value = "创建时间")
    private String createTime;

    @ApiModelProperty(value = "更新时间")
    private String updateTime;

    @ApiModelProperty(value = "店铺id")
    private Integer shopId;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "配送类型")
    private Integer deliveryType;

    @ApiModelProperty(value = "店铺名称")
    private String shopName;

    @ApiModelProperty(value = "订单总金额")
    private Integer total;

    @ApiModelProperty(value = "订单状态")
    private Integer status;

    @ApiModelProperty(value = "订单商品总数")
    private Integer allCount;

    @ApiModelProperty(value = "支付时间")
    private String payTime;
    @ApiModelProperty(value = "发货时间")
    private String deliveryTime;
    @ApiModelProperty(value = "完成时间")
    private String finallyTime;
    @ApiModelProperty(value = "结算时间")
    private String settledTime;
    @ApiModelProperty(value = "取消时间")
    private String cancelTime;

    @ApiModelProperty(name = "是否支付", notes = "是否支付, 1 已支付; 0 未支付")
    private Integer isPayed;
    @ApiModelProperty(value = "订单关闭原因 1 超时未支付; 4 买家取消; 15 已通过货到付款交易")
    private Integer closeType;

    @ApiModelProperty(value = "用户订单删除状态, 0 没有删除; 1 回收站; 2 永久删除")
    private Integer deleteStatus;
    @ApiModelProperty(value = "订单版本号, 每处理一次订单, 版本号 +1")
    private Integer version;
    @ApiModelProperty(value = "用户订单地址id")
    private Integer orderAddrId;

}
